

#include "EditorMain.h"
#include <QtWidgets/QApplication>
#include "Editor/QC_Application.h"
//#include <F:\Git\Visual_Leak_Detector\src\vld.h>
//#include <vld.h>
int main(int argc, char *argv[])
{
	//VLDRefreshModules();
	//VLDSetOptions(VLD_OPT_TRACE_INTERNAL_FRAMES | VLD_OPT_START_DISABLED | VLD_OPT_VLDOFF  | VLD_OPT_MODULE_LIST_INCLUDE | VLD_OPT_SKIP_CRTSTARTUP_LEAKS, 256, 64);
	//wchar_t abc = "buildlib.dll";
	//VLDSetModulesList("",TRUE);
	//VLDSetModulesList();
	char* p = argv[1];
	int rlt = 0;
	//VLDGlobalDisable(); 
	//VLDGlobalEnable();
	QCApplication a(argc, argv);
	{
		EditorMain mainWindow;

		mainWindow.onStart();
		mainWindow.show();
		rlt = a.exec();
	}

	if (p)
		delete p;
	
	
	//VLDReportLeaks();
	//VLDRefreshModules();
	//int ar = VLDGetOptions();
	return rlt;
}
